<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="messages.*" %>
<%
	ArrayList<Message> list = (ArrayList<Message>)request.getAttribute("list");
	Message m = list.get(0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>変更画面</title>
	</head>
	<body>
		<form action="UpdateServlet">
			<table>
				<tr>
					<td>ID</td>
					<td><%=m.getId() %>
					<input type="hidden" name="id" value="<%=m.getId() %>" /></td>
				</tr>
				<tr>
					<td>名前</td>
					<td><%=m.getAccount() %></td>
				</tr>
				<tr>
					<td>メッセージ</td>
					<td><textarea rows="5" cols="40" name="message"><%= m.getMessage() %></textarea></td>
				</tr>
				<tr>
					<td>表示/非表示</td>
					<td><input type="radio" name="delete_flag" value="0" checked="checked" />表示
							<input type="radio" name="delete_flag" value="1"  />非表示</td>
				</tr>
			</table>
					パスワード<input type="password" name="password" />
					<input type="submit" value="更新" />
		</form>
	</body>
</html>